//
//  ExpertDetailThemeCell.m
//  DaJiang
//
//  Created by sally on 16/10/9.
//  Copyright © 2016年 jiniu. All rights reserved.
//

#import "ExpertDetailThemeCell.h"

@interface ExpertDetailThemeCell ()

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@property (weak, nonatomic) IBOutlet UILabel *seenLabel;
@property (weak, nonatomic) IBOutlet UILabel *scoreLabel;

@end

@implementation ExpertDetailThemeCell

- (void)awakeFromNib {
}

- (void)setCellData:(TopicModel *)cellData {
  self.nameLabel.text = cellData.data.topic_name;
  self.priceLabel.text = [NSString stringWithFormat:@"¥%.2f/次",cellData.data.topic_price];
  self.seenLabel.text = [NSString stringWithFormat:@"%ld人见过",(long)cellData.data.consulting_count];
  self.scoreLabel.text = [NSString stringWithFormat:@"%.1f分",cellData.data.pro_topic_consulting_comment_avg_value];
}

@end
